package com.cavas.domain.bean;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="pret")
public class Pret implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer pretId;
	
	private String date;
	
	private Integer montant;
	
	private String extra;
	@ManyToOne
	@JoinColumn(name="membreId")
	private Membre membre;

	private String status;
	
	private String finances;
	
	private String nom;
	
	
	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getFinances() {
		return finances;
	}

	public void setFinances(String finances) {
		this.finances = finances;
	}

	public Integer getPretId() {
		return pretId;
	}	

	public void setPretId(Integer id_pret) {
		this.pretId = id_pret;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date_pret) {
		this.date = date_pret;
	}

	public Integer getMontant() {
		return montant;
	}

	public void setMontant(Integer montant) {
		this.montant = montant;
	}

	public String getExtra() {
		return extra;
	}

	public void setExtra(String is_extra) {
		this.extra = is_extra;
	}
	

	public Membre getMembre() {
		return membre;
	}


	public void setMembre(Membre membre) {
		this.membre = membre;
	}
	
	
}